﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDp_Dailymain_CostBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDp_Dailymain_Cost;

        void Remove(IDp_Dailymain_Cost entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDp_Dailymain_Cost;

        /// <summary>
        /// 日常养护同步数据
        /// </summary>
        /// <param name="roadnetid">路网ID</param>
        /// <param name="analy_year">分析年份</param>
        void Insert(string roadnetid, string analy_year);

        /// <summary>
        /// 通过决策路段获取基础路段信息
        /// </summary>
        /// <param name="mainsegid"></param>
        /// <returns></returns>
        IB_Invntory GetB_Invntory(string mainsegid);

        /// <summary>
        /// 通过决策路段获取基础路段信息
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="rdwayid">路线编号</param>
        /// <param name="segid_main">养护类型</param>
        /// <returns></returns>
        List<T> GetB_Invntory<T>(string rdwayid, int segid_main) where T : class,IB_Invntory;
    }
}
